Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Commit 5da5c0d070b39e5c1aa6fec8e45905fbfd7c1005


Parents : 2730af9
Author : Mark Qvist <bc7291552be7a58f361522990465165c>
Signature : T66BB85Valid, signed by author
Date : 2026-06-07T14:57:40+02:00

Updated build scripts

Changes

2 files changed, 11 insertions(+), 1 deletions(-)

M Makefile +6 -1
M setup.py +5

Diff

diff --git a/Makefile b/Makefile
index 4689891..5494255 100644
--- a/Makefile
+++ b/Makefile
@@ -53,8 +53,13 @@ build_spkg: remove_symlinks build_sdist create_symlinks
release: remove_symlinks build_wheel create_symlinks
upload:
+ @echo Ready to publish release over Reticulum
+ @read VOID
+ rngit release rns://7649a50d84610232d1416b41d2896aff/reticulum/lxst create $$(python setup.py --getversion):dist --name lxst
+
+upload-pip:
@echo Ready to publish release, hit enter to continue
@read VOID
@echo Uploading to PyPi...
- twine upload dist/*
+ twine upload dist/lxst-*.whl
@echo Release published

diff --git a/setup.py b/setup.py
index ff78f94..9bfbc0a 100644
--- a/setup.py
+++ b/setup.py
@@ -2,6 +2,7 @@ import setuptools
from setuptools import setup, Extension
from setuptools.command.build_ext import build_ext
import os
+import sys
import platform
if os.path.isfile("./skip_extensions"): BUILD_EXTENSIONS = False
@@ -14,6 +15,10 @@ else: print(f"Building LXST without native extensions...")
with open("README.md", "r") as fh: long_description = fh.read()
exec(open("LXST/_version.py", "r").read())
+if "--getversion" in sys.argv:
+ print(__version__, end="")
+ exit(0)
+
c_sources = ["LXST/Filters.c"]
if BUILD_EXTENSIONS: extensions = [ Extension("LXST.filterlib", sources=c_sources, include_dirs=["LXST"], language="c"), ]


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────